package com.bestv.search.common.model;

import java.util.Date;

/**
 * @author Justin Luo
 */
public class SearchKeywordHistory {

    private long id;
    private String keyword;
    private String mediaCode;
    private Date date;
    private String p_type;
    private int searchCount;
    private int hitCount;
    private Date lastUpdateTime;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getMediaCode() {
        return mediaCode;
    }

    public void setMediaCode(String mediaCode) {
        this.mediaCode = mediaCode;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getP_type() {
        return p_type;
    }

    public void setP_type(String p_type) {
        this.p_type = p_type;
    }

    public int getSearchCount() {
        return searchCount;
    }

    public void setSearchCount(int searchCount) {
        this.searchCount = searchCount;
    }

    public int getHitCount() {
        return hitCount;
    }

    public void setHitCount(int hitCount) {
        this.hitCount = hitCount;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();

        sb.append("{keyword: ");
        sb.append(keyword);
        sb.append(", date: ");
        sb.append(date.toString());
        sb.append(", p_type: ");
        sb.append(p_type);
        sb.append(", searchCount: ");
        sb.append(searchCount);
        sb.append(", hitCount: ");
        sb.append(hitCount);
        sb.append("}");

        return sb.toString();
    }
}